package com.fish.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 用户登录DTO
 */
@Data
@Schema(description = "用户登录请求对象")
public class UserLoginDTO implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 登录账号（用户名/邮箱/手机号）
     */
    @Schema(description = "登录账号（用户名/邮箱/手机号）", required = true, example = "admin")
    @NotBlank(message = "登录账号不能为空")
    private String username;
    
    /**
     * 密码
     */
    @Schema(description = "登录密码", required = true, example = "123456")
    @NotBlank(message = "密码不能为空")
    private String password;
    
    /**
     * 验证码key
     */
    @Schema(description = "验证码唯一标识", example = "abc123")
    private String captchaKey;
    
    /**
     * 验证码
     */
    @Schema(description = "图形验证码", example = "1234")
    private String captchaCode;
}